package com.red.star.wechat.work.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;
import java.util.Date;

/**
 * @author nofish.yan@gmail.com
 * @date 2018/4/2.
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChatRequestModel {

    //起始行,从o开始
    @Transient
    @JsonIgnore
    private int start;

    //当前需求行数
    @Transient
    @JsonIgnore
    private int length;

    private String id;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date requestTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUserRespTime;
    private String nickname;
    private String openId;
    private String name;
    private String mobile;
    private String chatType;
    private String chatName;
    private Integer response;
    private Long userWaitTime;
    private Long countEmployee;

    private String mallName;

    @Transient
    private String startTime;
    @Transient
    private String endTime;
    @Transient
    private String mallCode;

    private Integer scene;

    @Transient
    private String sceneName;
    /**
     * 是否发言
     */
    private Integer send;

}
